﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FaultDiagnosisSystem.Models;

namespace FaultDiagnosisSystem.BLL
{
    public class Component
    {
        DAL.Component dal = new DAL.Component();
        /// <summary>
        /// 获取有传感器数据的部件集合
        /// </summary>
        /// <returns></returns>
        public IList<Models.DataModels.Component> GetListWithSensorData()
        {
            return dal.GetListWithSensorData(); ;
        }

        /// <summary>
        /// 部件：传感器 字典
        /// </summary>
        /// <returns></returns>
        internal Dictionary<int,Models.DataModels.Component> GetDictWithSensorData()
        {
            return dal.GetDictWithSensorData();
        }
    }
}